package com.huilian.iotbox.data.vo;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 少凡
 * @date 2020/2/26 16:19
 */
@Data
public class UserInfo implements Serializable {

    private static final long serialVersionUID = -224970774464036825L;

    private Integer id;
    private String name;
    private String username;
    private String mobile;

    /**
     * 用户属于那个机构的
     */
    private Integer agencyId;
    /**
     * 用户角色，目前一个用户一个角色
     */
    private Integer roleId;
    private String nickname;
    private String unionId;
    private String openId;
    private Integer dockingStatus;
    private Integer cardStatus;
    private Integer payeeUserId;

    /**
     * 父ID
     */
    private Integer parentId;

    /**
     * 余额
     */
    private BigDecimal balance;
    private List<RoleVo> roles;

    private Boolean signStatus;

    /**
     * 除平台、机构、商户以外角色分配的机构集合
     */
    private List<Integer> agencyIdList = new ArrayList<>();

    private List<Integer> storeIdList = new ArrayList<>();
    private Integer welfareReturnCoinSum;

    private String startTime;
    private String endTime;
    /**
     * 自定义logo
     */
    private Boolean customLogo;
    /**
     * PC端logo文件名
     */
    private String pcLogoFileName;
    /**
     * 移动端logo文件名
     */
    private String mobileLogoFileName;
    /**
     * 总登录次数
     */
    private Integer loginCount;
    private Integer mchStoreId;
    private String storeName;
    private String token;
    private Integer mchStoreUserId;
    private Boolean temporaryRole;
}
